#ifndef __VTOR_STRING_PLAYER_H__
#define __VTOR_STRING_PLAYER_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "vtor_elec_module_config.h"

#ifdef __VTOR_STRING_PLAYER__

// 字符串简谱中，中音的偏移，
// 如果只有低音，那么  低音1为1，中音1为11，此数值应该为11-1=10
// 如果有低低音，那么低低音1为1，中音1为21，此数值应该为21-1=20
#define __VTOR_STRING_PLAYER_CONFIG_MIDDLE_OFFSET__	10

typedef struct
{
	const uint8_t** list;
	const uint8_t** music;
	const uint8_t* charactor;
	uint16_t freq;
	uint16_t toneLen;
	int8_t tone;
	uint8_t presetToneLen;
}VtorStringPlayer;

void VtorStringPlayer_Init(void);
void VtorStringPlayer_Run(VtorStringPlayer* player);
void VtorStringPlayer_PlayFreq(VtorStringPlayer* player);
void VtorStringPlayer_SwitchMusic(VtorStringPlayer* player);
void VtorStringPlayer_SwitchMusicCallback(VtorStringPlayer* player);


#endif // __VTOR_STRING_PLAYER__

#ifdef __cplusplus
}
#endif

#endif
